import layout from "@/layout";

export default {
    path: "/user",
    component: layout,
    redirect: "/user/manage",
    name: "userManage", // 这个name必须对应上面的menus页面权限字符串
    meta: {
        title: "user",
        icon: "personnel"
    },
    children: [
        {
            // 员工管理页面
            path: "/user/manage",
            component: () => import("@/views/user-manage/index"),
            meta: {
                title: "userManage",
                icon: "personnel-manage"
            }
        },
        {
            // 员工详情页面
            path: "/user/info/:id",
            name: "userInfo",
            component: () => import("@/views/user-info/index"),
            props: true,
            meta: {
                title: "userInfo"
            }
        },
        {
            // excel导入页面
            path: "/user/import",
            name: "import",
            component: () => import("@/views/import/index"),
            meta: {
                title: "excelImport"
            }
        }
    ]
};